package com.think.controller;

import com.think.common.BaseController;
import com.think.common.views.Result;
import com.think.entity.WebsiteNum;
import com.think.service.IWebsiteNumService;
import com.think.vo.WebsiteNumVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author bridge
 * @Date 2021/10/16/14:01
 */
@Slf4j
@RestController
@RequestMapping("/website")
public class WebsiteNumController extends BaseController<WebsiteNum> {

    @Autowired
    private IWebsiteNumService service;

    public IWebsiteNumService getIService() {
        return service;
    }


    @GetMapping("/queryWebsiteNum")
    public Result queryWebsiteNum() {
        List<WebsiteNumVO> websiteNumVOS = service.queryWebsiteNum();
        return Result.success(websiteNumVOS);
    }
}
